<h2>Install module</h2>
<?php echo XHtml::beginForm(array('/Cms/admin/modules/install'), 'post', array('id'=>'FormModuleNew')); ?>
<div class="Input">
    <?php echo XHtml::activeLabelEx($model,'moduleID'); ?>
    <?php echo XHtml::activeTextField($model,'moduleID',array('size'=>65)); ?>
    <div class="tooltip">
        Module ID is case-sensitive. It should only contain word characters.
        The generated module class will be named after the module ID.
        For example, a module ID <code>forum</code> will generate the module class
        <code>ForumModule</code>.
    </div>
    <?php echo XHtml::error($model,'moduleID'); ?>
</div>

<div class="Input">
    <?php echo XHtml::activeLabelEx($model,'template'); ?>
    <?php echo XHtml::activeDropDownList($model,'template',$templates); ?>
    <div class="tooltip">
        Please select which set of the templates should be used to generated the code.
    </div>
    <?php echo XHtml::error($model,'template'); ?>
</div>

<div class="Action">
    <?php echo XHtml::submitButton('Generate',array('name'=>'generate')); ?>
</div>
<?php echo XHtml::endForm(); ?>